import React from 'react';
import { Button } from 'antd'
import filesaver from 'file-saver'

interface Props {}

function Excel(props:Props) {

    var handleClick = ()=>{
        filesaver.saveAs( new Blob(["Hello, YBBBB!"], {type: "text/plain;charset=utf-8"}),'yb.txt');
    }
    return (
        <div className='excel'>
            <Button onClick={handleClick} style={{marginLeft:40,marginTop:20}}>下载</Button>
        </div>
    );
}

export default Excel;